package com.demo.user.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

/**
 * UserController 异常类
 *
 * @author YT
 * @date 2019-05-23
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
public class UserException extends Exception{

    private final String exceptionToDo = "Use To UserController";

    public UserException(){
        super();
    }

    public UserException(String message){
        super(message);
    }

}
